Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
🔖 Generates 1D, 2D, and composite barcodes in png, svg, or eps formats. Supports 50+ symbologies.
A Node.js module that generates barcode images. Supports 50+ different 1D or 2D symbologies in png, eps, or svg formats.
This Node.js module will allow you to generate over 50+ different types of 1D or 2D symbologies, including barcodes for books, grocery, shipping carriers, healthcare, and international codes.
It can create a PNG, SVG, or EPS image file, or return a string containing SVG, PostScript, or base64-encoded PNG data.
yarn add symbology
import { SymbologyType, createStream } from 'symbology'
(async () => {
const { data } = await createStream({
symbology: SymbologyType.CODE11
}, '8765432164')
console.log('Result: ', data)
})()
This will log:
{
"data": "data:image/png+data;base64,PHN [...] eFd==",
"message": "Symbology successfully created.",
"code": 0
}
And the base64 PNG generated will look like:
import { SymbologyType, createFile } from 'symbology'
(async () => {
const { data } = await createFile({
symbology: SymbologyType.MAXICODE,
option1: 2,
primary: '999999999840012',
fileName: 'maxiCodeExample.svg'
}, 'Secondary Message Here')
console.log('Result: ', data)
})()
This creates maxiCodeExample.svg
which looks like:
import { SymbologyType, createFile } from 'symbology'
(async () => {
const { data } = await createFile({
symbology: SymbologyType.ONECODE
fileName: 'uspsExample.eps'
}, '01234567094987654321-01234')
console.log('Result: ', data)
})()
This creates uspsExample.eps
which looks like:
FAQs
🔖 Generates 1D, 2D, and composite barcodes in png, svg, or eps formats. Supports 50+ symbologies.
The npm package symbology receives a total of 512 weekly downloads. As such, symbology popularity was classified as not popular.
We found that symbology demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.